/*
* $Id: ComboBoxItem.cpp 53 2010-03-09 15:24:03Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#include "Common/include.h"
#include "ComboBoxItem.h"
#include "Controls/ComboBoxDraw.h"

CComboBoxItem::CComboBoxItem(const std::tstring& strName, int nId)
: CEditItem(strName, nId){
	m_control = new CComboBoxDraw(strName, this);
}
CComboBoxItem::~CComboBoxItem(){}

void CComboBoxItem::Activate(bool bActive){
	m_control->SetActive(bActive);
}

void CComboBoxItem::AddValueItem(int nItemId, std::tstring strItemValue){
	((CComboBoxDraw*)m_control)->AddItem(nItemId, strItemValue);
}

void CComboBoxItem::SetValue(int nItemId){
	((CComboBoxDraw*)m_control)->SetValue(nItemId);
}